﻿<%@ Page Language="C#" AutoEventWireup="true" Inherits="ConfigPrint" Codebehind="ConfigPrint.aspx.cs" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>无标题页</title>
    <%--<object id="jatoolsPrinter" classid="CLSID:B43D3361-D975-4BE2-87FE-057188254255"
        codebase="jatoolsPrinter.cab#version=2,1,0,5">
    </object>--%>
    <object id="jatoolsPrinter" classid="CLSID:B43D3361-D975-4BE2-87FE-FFFF88254255"
        codebase="jatoolsPrinter_f.cab#version=2,1,0,3">
    </object>
    <style>
body {font-size:12px;margin:0;padding:0;}
.drag {
    cursor: move;
}

.box {
    margin: 0px;
    width: 200px;
    border: 1px solid #ccc;
}
.box h3.title {
    margin: 0px;
    width: 100%;
    background-color: #ccc;
}
.box div.content {
    margin: 0px;
    width: 100%;
    text-align: left;
}
.input_button {width:52px;height:23px;border:none;cursor:pointer; background:#ffffff url(../Include/Images/bt.gif) no-repeat;}
.input_button1 {width:74px;height:23px;border:none;cursor:pointer; background:#ffffff url(../Include/Images/bt1.gif) no-repeat;}
.menu_bg { background-color:#fef3bb; padding-left:20px;padding-top:6px; padding-bottom:6px;border-bottom:#cf994b 1px solid;clear:left;}
.menu_bg1 { background-color:#f5f5f5; padding-left:20px;padding-top:6px; padding-bottom:6px;border-bottom:#cccccc 1px solid;border-top:#cccccc 1px solid;clear:left;}
h2 {padding-left:20px;padding-top:10px;margin:0; background: url(../Include/Images/menu_title.gif) repeat-x;height:21px;font-size:14px; font-weight:600;}
</style>

    <script type="text/javascript">
   

var DragableObj = {
    handle: null,
    dx: 0,
    dy: 0,

    init: function(e) {
        e = e || event;
        this.handle = e.target || e.srcElement;
        if (this.handle.className.indexOf('drag') == -1) return;
        while (this.handle.tagName != 'HTML' && this.handle.title != "dragable") {
            this.handle = this.handle.parentNode || this.handle.parentElement;
        }
        if (this.handle.title != 'dragable') return;
        this.handle.style.position = 'relative';
        this.dx = parseInt(this.handle.style.left + 0) - e.clientX;
        this.dy = parseInt(this.handle.style.top  + 0) - e.clientY;        
        document.onmousemove = DragableObj.drag;
    },
    drag: function(e) {
        e = e || event;
        if (this.handle != null) {
            this.handle.style.left = (e.clientX + this.dx) + 'px';
            this.handle.style.top  = (e.clientY + this.dy) + 'px';
        }
    },
    drop: function(e) {
        this.handle = null;
        document.onmousemove = null;
    }
};
document.onmousedown = DragableObj.init;
document.onmouseup   = DragableObj.drop;
document.onselectstart = function(e) {
    e = e || event;
    eo = e.target || event.srcElement;
    if (eo.className.indexOf('drag') != -1) return false;
}
//增加一个

function creatDiv(el,id,top,left,width,height,text){//你要增加DIV的父节点，如：document.body
   var o=document.getElementById(el);
   var oDiv = document.createElement("div"); 
   oDiv.style.setAttribute("position","absolute");
   oDiv.title="dragable";
   oDiv.style.top=top+"px";
   oDiv.style.left=left+"px";
   oDiv.style.width=width ;
   oDiv.style.height=height;        
   oDiv.setAttribute("className","drag");
   oDiv.style.setAttribute("border","0   solid   #000000");  
   oDiv.style.setAttribute("word-break","break-all");   
//   oDiv.ondblclick=function(){
//   deleteDiv(id);
//   };
   oDiv.innerText=text;
   
   var obj=document.getElementById(id);
   if(obj)
   {
     alert('已经存在该元素');
     return false;
   }
   else
   {
     oDiv.id =id;   
     document.getElementById(el).appendChild(oDiv)
   }
   var controls = document.getElementsByName("chk");
   if(controls.length>0)
   {
        for(var i=0;i<controls.length;i++)
        {
            if(controls[i].title == id)
            {
                controls[i].checked = true;
                if(controls[i].id=="chkUserDefinedInfo")
                {
                    document.getElementById("txtUserDefinedInfo").value = text;
                }
                else if(controls[i].id=="chkReceiverAddress")
                {
                    document.getElementById("txtReceiverAddressWidth").value = width;
                }
                else if(controls[i].id=="chkSenderAddress")
                {
                    document.getElementById("txtSenderAddress").value = text;
                    document.getElementById("txtSenderAddressWidth").value = width;
                }
                else if(controls[i].id=="chkSenderName")
                {
                    document.getElementById("txtSenderName").value = text;
                }
                else if(controls[i].id=="chkSenderCompanyName")
                {
                    document.getElementById("txtSenderCompanyName").value = text;
                }
                else if(controls[i].id=="chkSenderPhone")
                {
                    document.getElementById("txtSenderPhone").value = text;
                }
                else if(controls[i].id=="chkSenderPostCode")
                {
                    document.getElementById("txtSenderPostCode").value = text;
                }
                else if(controls[i].id=="chkSenderAutograph")
                {
                    document.getElementById("txtSenderAutograph").value = text;
                }
                break;
            }
            
        }
   }
}
//删除一个

function deleteDiv(id){
    //alert(id);
   var oDiv = document.getElementById(id);
   oDiv.parentNode.removeChild(oDiv);
}
function SetDiv(obj,width,height,bgimg)
{
  var div=document.getElementById(obj);
  div.style.setAttribute("width",width+"px");
  div.style.setAttribute("height",height+"px");
  div.style.setAttribute("backgroundImage","url("+bgimg+")"); 
  div.innerHTML="";
  //var img=document.getElementById("img");
  //img.src=bgimg;
  //img.width=width+"px";
  //img.height=height+"px";  
}
function GetPosition()
{    
    var objs=document.getElementsByTagName("div");
    var idlist="";
    var toplist="";
    var leftlist="";
    var widthlist="";
    var heightlist="";
    var textlist="";
    for(var i=0;i<objs.length;i++)
    {
        if(objs[i].title=="dragable")
        {
            var id=objs[i].id;          
            var top=objs[i].offsetTop;
            var left=objs[i].offsetLeft;                    
            var width=objs[i].offsetWidth;
            var height=objs[i].offsetHeight;
            var text=objs[i].innerText;
            idlist=idlist+id+",";
            toplist=toplist+top+",";
            leftlist=leftlist+left+",";
            widthlist=widthlist+width+",";
            heightlist=heightlist+height+",";
            textlist=textlist+text+",";           
        }
    }    
    var drop=document.getElementById("dropTraner");
    var value=drop.options[drop.selectedIndex].value;
    var topRectify=document.getElementById("txtTopRectify").value;
    var leftRectify=document.getElementById("txtLeftRectify").value; 
    var aa=idlist+"|"+toplist+"|"+leftlist+"|"+widthlist+"|"+heightlist+"|"+textlist+"|"+value+"|"+topRectify+"|"+leftRectify;
    
    return aa;
}
//位置写入数据库

function CallServer()  
 {   
     var position=GetPosition();
     arg = position;   
     <%= ClientScript.GetCallbackEventReference(this, "arg", "ReceiveServerData", "")%>;                  
  }   
function ReceiveServerData(result)   
  {  
     if(result=="1")
     {                    
        alert('设置成功');
        
        
     }
      else
      {
         alert('设置失败');
        
      }
      
   } 
//初始化页面

function Init()
{
    document.getElementById("txtUserDefinedInfo").value="";
    var drop=document.getElementById("dropTraner");
    var value=drop.options[drop.selectedIndex].value;
    var controls = document.getElementsByName("chk");
   if(controls.length>0)
   {
        for(var i=0;i<controls.length;i++)
        {
            
            controls[i].checked = false;
           
        }
   }
    ConfigPrint.GetData(value,Init_CallBack);
    
}
function Init_CallBack(response)
{
     if (response.value != null)
       {                    
                    //debugger;        　　　            
        var ds = response.value;
        if(ds != null && typeof(ds) == "object" && ds.Tables != null)
        {                    
            for(var i=0; i<ds.Tables[0].Rows.length; i++)
            {
                var width=ds.Tables[0].Rows[i].Img_Width;
                var height=ds.Tables[0].Rows[i].Img_Heigth;
                var img=document.getElementById("hidExpressBillImagePath").value + ds.Tables[0].Rows[i].Image;
                document.getElementById("txtTopRectify").value = ds.Tables[0].Rows[i].TRANER_FIELD1;
                document.getElementById("txtLeftRectify").value = ds.Tables[0].Rows[i].TRANER_FIELD2;                
                SetDiv('Area',width,height,img);
            }
           
            if(ds.Tables[1] !=null)
            {
                for(var j=0;j<ds.Tables[1].Rows.length;j++)
                {                 
                    var name=ds.Tables[1].Rows[j].STANCE_Name;
                    var top=ds.Tables[1].Rows[j].Top;
                    var left=ds.Tables[1].Rows[j].Left;
                    var width=ds.Tables[1].Rows[j].Width;
                    var height=ds.Tables[1].Rows[j].Heigth;
                    var text=ds.Tables[1].Rows[j].Text;
                    creatDiv('Area',name,top,left,width,height,text);
                }
            }
        }
       }                
    return
}
function Priview()
{
    var drop=document.getElementById("dropTraner");
    var value=drop.options[drop.selectedIndex].value;
    document.getElementById("FrameId").src="PrintWindow.aspx?tranerId="+value;     
}
function doPrint()
{  
    if(window.frames["FrameId"].document.readyState=="complete")
    {       
        if(typeof(jatoolsPrinter.page_div_prefix)=='undefined'){
        alert("请按页顶上的黄色提示下载ActiveX控件.如果没有提示请按以下步骤设置ie.\n 工具-> internet 选项->安全->自定义级别,设置 ‘下载未签名的 ActiveX ’为'启用'状态")
        return ;
        }
	//打印文档对象
    var myreport ={ 
    				documents: window.frames["FrameId"].document,    // 打印页面(div)们在本文档中
    				copyrights  :    '杰创软件拥有版权 www.jatools.com'         // 版权声明必须
    			  };
    			  
    // 调用打印方法
    //if(how == '打印预览...')
    	jatoolsPrinter.printPreview(myreport );   // 打印预览
                 
   	//else if(how == '打印...')
   		//jatoolsPrinter.print(myreport ,true);   // 打印前弹出打印设置对话框
                
   //	else
   		//jatoolsPrinter.print(myreport ,false);       // 不弹出对话框打印
   }
   else
   {
     setTimeout("doPrint()",1000);   
   }
   		
}
    function CheckCreateOrSubDiv(ctl)
    {
        if(ctl.checked==true)
        {
        
            var values = ctl.value.split("|");
            creatDiv('Area',values[0],'0','0','250','30',values[1])
        }
        else
        {
            var values = ctl.value.split("|");
            deleteDiv(values[0]);
        }
        
    }
    
    function CheckCreateOrSubShipAddressInfoDiv(ctl)
    {
        //alert("create");
        if(ctl.checked==true)
        {
            var addressWidthDiv = document.getElementById(ctl.lang).value;
            if(addressWidthDiv.length<1)
            {
                alert("请输入宽度！");
                ctl.checked = false;
                return;
            }
            var values = ctl.value.split("|");
            creatDiv('Area',values[0],'0','0',addressWidthDiv,'30',values[1])
        }
        else
        {
            var values = ctl.value.split("|");
            deleteDiv(values[0]);
        }
    }
    
    function UpdateShipAddressInfoDivWidth(ctl)
    {
        //alert("update");
        var addressDiv = document.getElementById(ctl.lang);
        if(addressDiv==null)
        {
            return;
        }
        else
        {
            addressDiv.style.width = ctl.value*1.;
        }
    }
    
    function CheckCreateOrSubSenderAddressInfoDiv(ctl)
    {
        //alert("create");
        if(ctl.checked==true)
        {
            var senderAddress = document.getElementById("txtSenderAddress").value;
            if(senderAddress.length<1)
            {
                alert("请先输入寄件人地址!");
                ctl.checked = false;
                return;
            }
            var addressWidthDiv = document.getElementById(ctl.lang).value;
            if(addressWidthDiv.length<1)
            {
                alert("请输入宽度！");
                ctl.checked = false;
                return;
            }
            var values = ctl.value.split("|");
            creatDiv('Area',values[0],'0','0',addressWidthDiv,'30',senderAddress)
        }
        else
        {
            var values = ctl.value.split("|");
            deleteDiv(values[0]);
        }
    }
    
    function UpdateSenderAddress(ctl)
    {
        var senderAddressDiv = document.getElementById(ctl.lang);
        if(senderAddressDiv==null)
        {
            return;
        }
        else
        {
            senderAddressDiv.innerText = ctl.value;
        }
    }
    
    function UpdateSenderAddressInfoDivWidth(ctl)
    {
        var addressDiv = document.getElementById(ctl.lang);
        if(addressDiv==null)
        {
            return;
        }
        else
        {
            addressDiv.style.width = ctl.value*1.;
        }
        alert(addressDiv.style.width);
    }
    
    function CheckCreateOrSubSenderNameDiv(ctl)
    {
        if(ctl.checked==true)
        {
            var senderName = document.getElementById("txtSenderName").value;
            if(senderName.length<1)
            {
                alert("请先输入寄件人姓名!");
                ctl.checked = false;
                return;
            }
            var values = ctl.value.split("|");
            creatDiv('Area',values[0],'0','0','250','30',senderName)
        }
        else
        {
            var values = ctl.value.split("|");
            deleteDiv(values[0]);
        }
    }
    
    function UpdateSenderName(ctl)
    {
        var senderNameDiv = document.getElementById(ctl.lang);
        if(senderNameDiv==null)
        {
            return;
        }
        else
        {
            senderNameDiv.innerText = ctl.value;
        }
    }
    
    function CheckCreateOrSubSenderCompanyNameDiv(ctl)
    {
        if(ctl.checked==true)
        {
            var senderCompanyName = document.getElementById("txtSenderCompanyName").value;
            if(senderCompanyName.length<1)
            {
                alert("请先输入寄件人单位名称!");
                ctl.checked = false;
                return;
            }
            var values = ctl.value.split("|");
            creatDiv('Area',values[0],'0','0','250','30',senderCompanyName)
        }
        else
        {
            var values = ctl.value.split("|");
            deleteDiv(values[0]);
        }
    }
    
    function UpdateSenderCompanyName(ctl)
    {
        var senderCompanyNameDiv = document.getElementById(ctl.lang);
        if(senderCompanyNameDiv==null)
        {
            return;
        }
        else
        {
            senderCompanyNameDiv.innerText = ctl.value;
        }
    }
    
    function CheckCreateOrSubSenderPhoneDiv(ctl)
    {
        if(ctl.checked==true)
        {
            var senderPhone = document.getElementById("txtSenderPhone").value;
            if(senderPhone.length<1)
            {
                alert("请先输入寄件人电话!");
                ctl.checked = false;
                return;
            }
            var values = ctl.value.split("|");
            creatDiv('Area',values[0],'0','0','250','30',senderPhone)
        }
        else
        {
            var values = ctl.value.split("|");
            deleteDiv(values[0]);
        }
    }
    
    function UpdateSenderPhone(ctl)
    {
        var senderPhoneDiv = document.getElementById(ctl.lang);
        if(senderPhoneDiv==null)
        {
            return;
        }
        else
        {
            senderPhoneDiv.innerText = ctl.value;
        }
    }
    
    function CheckCreateOrSubSenderPostCodeDiv(ctl)
    {
        if(ctl.checked==true)
        {
            var senderPostCode = document.getElementById("txtSenderPostCode").value;
            if(senderPostCode.length<1)
            {
                alert("请先输入寄件人电话!");
                ctl.checked = false;
                return;
            }
            var values = ctl.value.split("|");
            creatDiv('Area',values[0],'0','0','250','30',senderPostCode)
        }
        else
        {
            var values = ctl.value.split("|");
            deleteDiv(values[0]);
        }
    }
    
    function UpdateSenderPostCode(ctl)
    {
        var senderPostCodeDiv = document.getElementById(ctl.lang);
        if(senderPostCodeDiv==null)
        {
            return;
        }
        else
        {
            senderPostCodeDiv.innerText = ctl.value;
        }
    }
    
    function CheckCreateOrSubSenderAutographDiv(ctl)
    {
        if(ctl.checked==true)
        {
            var senderAutograph = document.getElementById("txtSenderAutograph").value;
            if(senderAutograph.length<1)
            {
                alert("请先输入寄件人签名!");
                ctl.checked = false;
                return;
            }
            var values = ctl.value.split("|");
            creatDiv('Area',values[0],'0','0','250','30',senderAutograph)
        }
        else
        {
            var values = ctl.value.split("|");
            deleteDiv(values[0]);
        }
    }
    
    function UpdateSenderAutograph(ctl)
    {
        var senderAutographDiv = document.getElementById(ctl.lang);
        if(senderAutographDiv==null)
        {
            return;
        }
        else
        {
            senderAutographDiv.innerText = ctl.value;
        }
    }
    
    function CheckCreateOrSubUserDefinedInfoDiv(ctl)
    {
        if(ctl.checked==true)
        {
            var userDefinedInfo = document.getElementById("txtUserDefinedInfo").value;
            if(userDefinedInfo.length<1)
            {
                alert("请先输入您的自定义信息!");
                ctl.checked = false;
                return;
            }
            var values = ctl.value.split("|");
            creatDiv('Area',values[0],'0','0','250','30',userDefinedInfo)
        }
        else
        {
            var values = ctl.value.split("|");
            deleteDiv(values[0]);
        }
    }
    
    function UpdateUserDefinedInfo(ctl)
    {
        
        var userDefinedInfoDiv = document.getElementById(ctl.lang);
        if(userDefinedInfoDiv==null)
        {
            return;
        }
        else
        {
            userDefinedInfoDiv.innerText = ctl.value;
        }
    }
    
    </script>

</head>
<body onload="Init()">
    <form id="form1" runat="server">
        <h2>快递单打印设置</h2>
         <div class="menu_bg"><input id="Button1" class="input_button" type="button" value="保存" onclick="CallServer()" />
                    <input id="Button2" class="input_button1" type="button" value="打印预览" onclick="Priview()" />
                    <input id="Button6" class="input_button" type="button" value="打印" onclick="doPrint()" /></div>
                    <div class="menu_bg1"><asp:DropDownList ID="dropTraner" runat="server" onchange="Init()" >
                                </asp:DropDownList>&nbsp;&nbsp;<input id="hidExpressBillImagePath" type="hidden" runat="server" /><br />
        <input id="chkDealType"  type="checkbox" title="DT_NAME" name="chk" value="DT_NAME|交易类型" onclick="CheckCreateOrSubDiv(this)" />交易类型&nbsp;&nbsp;　
        <input id="chkReceiverName"  type="checkbox" title="ORDER_GETER" name="chk" value="ORDER_GETER|收货人姓名" onclick="CheckCreateOrSubDiv(this)" />收货人姓名&nbsp;&nbsp;　
        <input id="chkReceiverPhone"  type="checkbox" title="ORDER_GETERPHONE1" name="chk" value="ORDER_GETERPHONE1|收货人电话" onclick="CheckCreateOrSubDiv(this)" />收货人电话&nbsp;&nbsp;　
        <input id="chkReceiverMobile"  type="checkbox" title="ORDER_GETERPHONE2" name="chk" value="ORDER_GETERPHONE2|收货人手机" onclick="CheckCreateOrSubDiv(this)" />收货人手机&nbsp;&nbsp;　
        <input id="chkPostCode"  type="checkbox" title="ORDER_GETPOSTCODE" name="chk" value="ORDER_GETPOSTCODE|收货人邮编" onclick="CheckCreateOrSubDiv(this)" />收货人邮编&nbsp;&nbsp;　
        <input id="chkReceiverAddress"  type="checkbox" lang="txtReceiverAddressWidth" title="ORDER_GETADDRESS" name="chk" value="ORDER_GETADDRESS|收货人地址" onclick="CheckCreateOrSubShipAddressInfoDiv(this)" />收货人地址&nbsp;&nbsp;
        显示宽度：<input id="txtReceiverAddressWidth" type="text" lang="ORDER_GETADDRESS" onkeyup="UpdateShipAddressInfoDivWidth(this)" style="width: 23px" />(单位:像素)&nbsp;<br />
        <input id="chkOrderId"  type="checkbox" title="ORDER_ID" name="chk" value="ORDER_ID|订单编号" onclick="CheckCreateOrSubDiv(this)" />订单编号&nbsp;&nbsp;&nbsp; &nbsp;
        <input id="chkQty"  type="checkbox" title="ORDER_QTY" name="chk" value="ORDER_QTY|件数" onclick="CheckCreateOrSubDiv(this)" />件数&nbsp;&nbsp;　　　　　
        <input id="chkWeight"  type="checkbox" title="ORDER_WEIGHT" name="chk" value="ORDER_WEIGHT|重量" onclick="CheckCreateOrSubDiv(this)" />重量&nbsp;&nbsp;　　　
        <input id="chkAmount"  type="checkbox" title="ORDER_AAMT" name="chk" value="ORDER_AAMT|订单金额" onclick="CheckCreateOrSubDiv(this)" />订单金额&nbsp;&nbsp;　　
        <input id="chkOrigin"  type="checkbox" title="origin" name="chk" value="origin|始发地" onclick="CheckCreateOrSubDiv(this)" />始发地&nbsp;&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;
        <input id="chkConfirm1"  type="checkbox" title="confirm1" name="chk" value="confirm1|√" onclick="CheckCreateOrSubDiv(this)" />√&nbsp;&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp;
        <input id="chkConfirm2"  type="checkbox" title="confirm2" name="chk" value="confirm2|√" onclick="CheckCreateOrSubDiv(this)" />√&nbsp;&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;
        <input id="chkSendDate"  type="checkbox" title="sendDate" name="chk" value="sendDate|寄件日期" onclick="CheckCreateOrSubDiv(this)" />寄件日期&nbsp; 

        <input id="chkBYZD8"  type="checkbox"  title="BYZD8" name="chk"  value="BYZD8|送货时间" onclick="CheckCreateOrSubDiv(this)" />送货时间&nbsp;<br />

      
        <input id="chkSenderName"  type="checkbox" title="senderName" name="chk" value="senderName|寄件人姓名" onclick="CheckCreateOrSubSenderNameDiv(this)" />寄件人姓名&nbsp;&nbsp;&nbsp;
        <input id="txtSenderName" lang="senderName" onkeyup="UpdateSenderName(this)" style="width: 428px" type="text" />&nbsp; &nbsp; &nbsp;<br />
        <input id="chkSenderAddress"  type="checkbox" lang="txtSenderAddressWidth" title="senderAddress" name="chk" value="senderAddress|寄件人地址" onclick="CheckCreateOrSubSenderAddressInfoDiv(this)" />寄件人地址&nbsp;&nbsp;&nbsp;
        <input id="txtSenderAddress" lang="senderAddress" onkeyup="UpdateSenderAddress(this)" style="width: 428px" type="text" />&nbsp;
        显示宽度：<input id="txtSenderAddressWidth" type="text" lang="senderAddress" onkeyup="UpdateSenderAddressInfoDivWidth(this)" style="width: 27px" />(单位:像素)&nbsp;<br />
        <input id="chkSenderCompanyName"  type="checkbox" title="senderCompanyName" name="chk" value="senderCompanyName|寄件人单位名称" onclick="CheckCreateOrSubSenderCompanyNameDiv(this)" />寄件人单位名称&nbsp;&nbsp;
        <input id="txtSenderCompanyName" lang="senderCompanyName" onkeyup="UpdateSenderCompanyName(this)" style="width: 428px" type="text" />&nbsp;<br />
        <input id="chkSenderPhone"  type="checkbox" title="senderPhone" name="chk" value="senderPhone|寄件人电话" onclick="CheckCreateOrSubSenderPhoneDiv(this)" />寄件人电话&nbsp;&nbsp;&nbsp;
        <input id="txtSenderPhone"  lang="senderPhone" onkeyup="UpdateSenderPhone(this)" style="width: 428px" type="text" /><br />
        <input id="chkSenderPostCode"  type="checkbox" title="senderPostCode" name="chk" value="senderPostCode|寄件人邮编" onclick="CheckCreateOrSubSenderPostCodeDiv(this)" />寄件人邮编&nbsp;&nbsp;&nbsp;
        <input id="txtSenderPostCode" lang="senderPostCode" onkeyup="UpdateSenderPostCode(this)" style="width: 428px" type="text" />&nbsp; &nbsp;<br />
        <input id="chkSenderAutograph"  type="checkbox" title="senderAutograph" name="chk" value="senderAutograph|寄件人签名" onclick="CheckCreateOrSubSenderAutographDiv(this)" />寄件人签名&nbsp;&nbsp;&nbsp;
        <input id="txtSenderAutograph" lang="senderAutograph" onkeyup="" style="width: 428px" type="text" />&nbsp;<br />
        <input id="chkUserDefinedInfo"  type="checkbox" title="userDefinedInfo" name="chk" value="userDefinedInfo|自定义信息" onclick="CheckCreateOrSubUserDefinedInfoDiv(this)" />自定义信息&nbsp; &nbsp;
        <input id="txtUserDefinedInfo" type="text" lang="userDefinedInfo" onkeyup="UpdateUserDefinedInfo(this)" style="width: 616px" />
        <asp:Label ID="Label1" runat="server" Text='(注：自定义信息如需换行,请输入"&ltbr /&gt".)'></asp:Label><br />
        上下矫正：<asp:TextBox ID="txtTopRectify" runat="server"></asp:TextBox><br />
        左右矫正：<asp:TextBox ID="txtLeftRectify" runat="server"></asp:TextBox><br />
        </div><br />
        <div id="Area" style="position: relative">
                    </div>
        
        <div style="position: absolute">
        </div>
        <iframe id="FrameId" width="100%" height="30%" frameborder="0" style="display:none"></iframe>
        <br />
        <br />
        <br />
        <br />
        <br />
        <br />
        <br />
        <br />
        <br />
        <br />
        <br />
        <br />
        <br />
        <br />
        <br />
    </form>
</body>
</html>
